import Vue from 'vue'
import VueRouter from 'vue-router'
import ComponentOne from '../views/componentsOne.vue'
import ComponentTwo from '../views/componentsTwo.vue'
import managerLogin from '../views/managerLogin.vue'
import managerPage from '../views/managerPage.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'ComponentOne',
    component: ComponentOne
  },
  {
    path: '/component-two',
    name: 'ComponentTwo',
    component: ComponentTwo
  },
  {
    path: '/manager-login',
    name: 'managerLogin',
    component: managerLogin
  },
  {
    path: '/manager-page',
    name: 'managerPage',
    component: managerPage
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
